@extends('layouts.admin')
@section('title','商品类型管理')


@section('content')

    <!-- Main content -->
    <section class="content">
      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
             <a href="{{route('admin.category.create')}}"><button type="button" class="btn bg-maroon btn-flat margin">新增</button></a>
             <button type="button" class="btn bg-olive btn-flat margin">删除</button>
             <div class="box-tools">
                <div class="input-group input-group-sm" style="width: 150px;">
                  <input type="text" name="table_search" class="form-control pull-right" placeholder="Search">

                  <div class="input-group-btn">
                    <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                  </div>
                </div>
              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <table id="example2" class="table table-bordered table-hover">
                <thead>
                <tr>
                	<th></th>
                	<th>id</th>
                  	<th>分类名称</th>
                  	<th>分类关键词</th>
                  	<th>分类描述</th>
                  	
                  	
                  	<th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($category as $v)
                <tr>
                	<td><input type="checkbox" value="{!!$v['id']!!}"></td>
                  	<td>{!!$v['id']!!}</td>
                  	<td>{!!$v['name']!!}</td>
                  	<td>{!!$v['tags']!!}</td>
                  	<td>{!!$v['description']!!}</td>
                  	
                  	
                  	<td>	
	                  	<a href="{{route('admin.category.edit',['id'=>$v['id']])}}"><button type="button" class="btn btn-info">编辑</button></a>
	                  	<a href="{{route('admin.category.destroy',['id'=>$v['id']])}}" type="button" class="btn btn-danger ajax-get" data-confirm="确定要删除这篇文章吗？" data-success="removeTr">删除</a>
	              		
              		</td>
                
                </tr>

                @endforeach
                </tbody>
              </table>
            </div>
            <!-- /.box-body -->
            
              
           
          </div>
          

          
     
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    <!-- /.content -->
  </div>
 


@endsection